﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<KabiManagementWeb.Models.Reward>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Bonus
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Thưởng Cho nhân viên</h2>

    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Nhân viên : <% = ((KabiManagementWeb.Models.Pay_Salary)ViewData["ps"]).Employee.FullName %></legend>
          
            
            <div class="editor-label">
                Lý do thưởng
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Reason) %>
                <%= Html.ValidationMessageFor(model => model.Reason) %>
            </div>
            
            <div class="editor-label">
                Số tiền 
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Amount) %>
                <%= Html.ValidationMessageFor(model => model.Amount) %>
            </div>            
            <div class="editor-label">
                Tháng :<% = ((KabiManagementWeb.Models.Pay_Salary)ViewData["ps"]).PayMonth %> - Năm :<% = ((KabiManagementWeb.Models.Pay_Salary)ViewData["ps"]).PayYear %>
            </div>
           
            <p>
                <input type="submit" value="Thưởng" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("<- Quay lại", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptZone" runat="server">
</asp:Content>

